package com.zbycorp.generatecode.entity;

import com.zbycorp.generatecode.enums.MatchTypeEnum;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author YCL
 * @date 2023/3/24
 */
@Data
@NoArgsConstructor
public class TypeMapper {

    /**
     * 匹配类型
     */
    private MatchTypeEnum matchType;
    /**
     * 列类型
     */
    private String columnType;
    /**
     * java类型
     */
    private String javaType;

    public TypeMapper(String columnType, String javaType) {
        this.matchType = MatchTypeEnum.REGEX;
        this.columnType = columnType;
        this.javaType = javaType;
    }

}
